//package com.core.system.reckerMQ.imMessage;
//
//import com.alibaba.fastjson.JSON;
//import com.utility.exception.ServiceException;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//@Component
//public class ImServerContent {
//
//    private ImServer imServer;
//
//    @Autowired
//    private ImServerLogOut imServerLogOut;
//
//    @Autowired
//    private ImServerMessageRecord imServerMessageRecord;
//
//    private ImServerInfo imServerInfo;
//
//
//
//    public void execute(String messageObj){
//        imServerInfo =  JSON.parseObject(messageObj, ImServerInfo.class);
//        switch (imServerInfo.getTag()){
//            case "logOut":
//                this.imServer = imServerLogOut;
//                break;
//            case "record":
//                this.imServer = imServerMessageRecord;
//                break;
//            default:
//                throw new ServiceException("tag 类型错误");
//        }
//        imServer.execute(imServerInfo);
//    }
//
//}
